<?php



class gmt{
	static $_instance = null;

	public static function getInstance() {
		if (self::$_instance == null) {
			self::$_instance = new users();
		}
		return self::$_instance;
	}
	
	function getGMT(){
		//esto habria que incluirlo de dbconfig.php pero no me anda
		$dbhost = 'mysql.gosocial.com.ar';
		$dbuser = 'socialitba';
		$dbpass = 's0c14l1tb4';
		$dbname = 'socialitba';

		$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die('Can not connect to database! Please try again later');
		mysql_select_db($dbname, $conn);


		$rows = mysql_query("SELECT time_zone, show_text, tzoffset FROM bundundu_gmt ORDER BY show_text");
		
		
				
		$i=0;
		$result = Array();
		while(  $result[$i]= mysql_fetch_array($rows)  ){
			$i++;
		}
			
		mysql_close($conn);
		
		
		
		return $result;
	}
	
}
